<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use Dcat\Admin\Admin;

Admin::routes();

Route::group([
    'prefix'     => config('admin.route.prefix'),
    'namespace'  => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index');

    $router->resource('category', 'Category\CategoryController');
    Route::get('/dataExport', 'Export\ExcelExportController@dataExport');
    $router->resource('category_module', 'Category\CategoryModuleController');
    $router->resource('clickLearn', 'Data\ClickLearnController');
    $router->resource('sentence', 'Sentence\OftenExpressionController');
    $router->resource('textbookAudio', 'TextbookAudio\TextbookAudioController');
    $router->resource('virtual', 'Virtual\VirtualController');
    $router->resource('learn_word', 'LearnWord\LearnWordController');
    $router->resource('vocabulary', 'Vocabulary\VocabularyController');
    $router->resource('file_url', 'Tool\FileUrlController');
    $router->resource('pdfImage', 'Pdf\PdfImageController');

});
